import axios from 'axios'


export const getInfo = async (id:number) =>{
    let {data} = await axios.get(`https://apis.netstart.cn/xmsc/miproduct/view?commodity_id=${id}`)
    
    return data

}
export const getRecommend = async (id:number) =>{
    let {data} = await axios.get(`https://apis.netstart.cn/xmsc/miproduct/recom_btm?commodity_id=${id}`)
    console.log("推荐",data);
    
    return data

}